<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title></title>
	<link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="/study/Public/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/study/Public/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 自动接收update方法传来的user变量用户名：<?php echo ($user["username"]); ?>；
电话：<?php echo ((isset($user["tele"]) && ($user["tele"] !== ""))?($user["tele"]):'没有电话号码'); ?>；-->
<form name="f1" method="post" action="doupdategroup" enctype="multipart/form-data" class="form-horizontal">
<h1 align="center">社团修改</h1>
<input type="hidden" name="gid" value="<?php echo ($group["gid"]); ?>"></input>
	<div class="form-group">
		<label for="pic" class="col-md-2 control-label">Logo</label>
		<div class="col-md-10">
		<img src="/study/Public/uploads/photo/<?php echo ($group["photo"]); ?>" alt="图像不存在" >
			<input type="file" name="photo" />
		</div>
	</div>
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">社团名称</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="groupname"  name="groupname" value="<?php echo ($group["groupname"]); ?>"  placeholder="Name"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">所在团队</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="team"  name="team"
		value="<?php echo ($group["team"]); ?>"  placeholder="Name"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputintro" class="col-md-2 control-label">介绍</label>
		<div class="col-md-10">
			<textarea name="intro" cols="50" rows="5" class="form-control" value=""><?php echo ($group["intro"]); ?></textarea>
		</div>
	</div>	
<div class="form-group">
		<label for="inputbirthday" class="col-md-2 control-label">成立日期</label>
		<div class="col-md-10">
			<input type="date" namedate="birthdate" name="regdate" id="regdate" value="<?php echo ($group["regdate"]); ?>">
		</div>
	</div>
<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">负责人学号</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="leader"  name="leader"  value="<?php echo ($group["leader"]); ?>" />
	</div>
	</div>
		<div class="form-group">
        <label for="state" class="col-md-2 control-label">状态</label>
        <div class="col-md-2">
            <select class="form-control" name="state" id="state">
                <option value="0"<?php if($user["state"] == 0): ?>selected<?php endif; ?>>普通社团</option>
                <option value="1"<?php if($user["state"] == 1): ?>selected<?php endif; ?>>禁言</option>
            </select>
        </div>
    </div>

		<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<input class="btn btn-default" type="submit" value="提交">
			<input class="btn btn-default" type="reset" value="重置">
		</div>
	</div>
</form>
</body>
</html>